<?php
namespace App\Http\Controllers;

use App\Models\Banner;
use App\Models\Homebanner;

class BannerController extends WxBaseController{
    protected $except=['index','home'];
    public function index(){
        $banners = Banner::get();
        editImageUrl($banners);
        return $this->apiReturn(true,'success',$banners);
    }
    public function home(){
        $banners = Homebanner::get();
        editImageUrl($banners);
        return $this->apiReturn(true,'success',$banners);
    }
}